package com.renjiyue.Day1;

public class Cat {
    public Cat(){}
    private String name;
    private int age;
    private int weight;
    private String color;
    public Cat(String name,int age ,int weight,String color){
        this.age = age;
        this.color = color;
        this.name = name;
        this.weight = weight;
    }
    public void setName(String name) {
        this.name = name;
    }

    public void setWeight(int weight) {
        this.weight = weight;
    }

    public void setColor(String color) {
        this.color = color;
    }

    public void setAge(int age) {
        this.age = age;
    }
    public void jump(){
        System.out.println("跳");
    }
    public void run(){
        System.out.println("跑");
    }
    public void eat(){
        System.out.println("吃");
    }
    public void sleep(){
        System.out.println("睡觉");
    }
    public void printf(){
        System.out.println(this.name);
        System.out.println(this.age);
        System.out.println(this.weight);
        System.out.println(this.color);
    }
}
